home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 139
/
(Vol 139) Sep 24 2011.iso
/
Games
/
xtreme_tugboating.swf
/
scripts
/
DefineSprite_229
/
frame_1
/
DoAction.as
Wrap
Text File
|
2011-09-24
|
830b
|
33 lines
stop();
this._visible = false;
_root.rainbowCombo = 0;
this.onEnterFrame = function()
{
if(random(100) == 0)
{
this._visible = true;
_rotation = random(360);
this.play();
this.onEnterFrame = function()
{
if(this.hitTest(_root.player._x,_root.player._y,true))
{
if(_root.player.vSpeed > -10)
{
_root.player.vSpeed -= 2;
}
_root.score = _root.score + 1;
_root.rainbowCombo += 25;
if(_root.health < 100)
{
_root.health += 0.1;
}
if(random(2) == 0)
{
_root.makeFlame(_root.player._x + random(20) - 10,_root.player._y + random(20) - 10,0,0);
}
}
};
}
};